import request from '@/utils/request'
// 查询账单
export function applyFromPage(data) {
  return request({
    url: '/cash/applyFromPage',
    method: 'get',
    params: data
  })
}
// 统计
export function analyseData() {
  return request({
    url: '/asset/analyseData',
    method: 'get'
  })
}
// 提现查询
export function cash() {
  return request({
    url: '/cash/info',
    method: 'get'
  })
}
// 获取验证码
export function authCode(data) {
  return request({
    url: '/cash/authCode',
    method: 'post',
    headers:{
      "Content-Type":"application/json"
    },
    data: JSON.stringify(data)
  })
}
// 退款接口
export function cashtake(data) {
  return request({
    url: '/cash/take',
    method: 'post',
    data:data
  })
}
// 查询账单流水列表
export function accountPage(data) {
  return request({
    url: '/running/account/list',
    method: 'get',
    params: data
  })
}
// 查询银行卡列表
export function bankCardlist(data) {
  return request({
    url: '/bankCard/page',
    method: 'get',
    params: data
  })
}
// 新增银行卡列表
export function bankCardadd(data) {
  return request({
    url: '/bankCard/add',
    method: 'post',
    data: data
  })
}

// 修改活动服务列表
export function bankCardupdate(data) {
  return request({
    url: '/bankCard/update',
    method: 'put',
    data: data
  })
}

// 删除活动列表
export function bankCarddelete(pkId) {
  return request({
    url: '/bankCard/delete?id='+pkId,
    method: 'delete'
  })
}
